package cn.aresoft.framework.support.service.impl;

import java.io.Serializable;
import java.util.List;

import org.apache.log4j.Logger;

import cn.aresoft.framework.support.dao.IDaoSupport;
import cn.aresoft.framework.support.service.IServiceSupport;

public class ServiceSupportImpl implements IServiceSupport{

	private static final Logger logger = Logger.getLogger(ServiceSupportImpl.class);
	
	private IDaoSupport iDaoSupport;
	
	public void setIDaoSupport(IDaoSupport iDaoSupport) {
		this.iDaoSupport = iDaoSupport;
	}

	public List findForList(String sqlName, Serializable arg) {
		return iDaoSupport.findForList(sqlName, arg);
	}

	public Object insert(String insertSqlName, Serializable obj) {
		return iDaoSupport.insert(insertSqlName, obj);
	}

	public Object load(String sqlName, Serializable pk) {
		return iDaoSupport.load(sqlName, pk);
	}

	public int remove(String removeSqlName, Serializable obj) {
		return iDaoSupport.remove(removeSqlName, obj);
	}

	public int update(String updateSqlName, Serializable obj) {
		
		return iDaoSupport.update(updateSqlName, obj);
	}

	public int tableCountNum(String sqlName, Serializable obj) {
		
		return iDaoSupport.tableCountNum(sqlName, obj);
	}

	public Object getObject(String sqlName, Serializable obj) {
		return iDaoSupport.getObject(sqlName, obj);
	}
	public Object getObjectInfo(String sqlName, Object obj) {
		return iDaoSupport.getObjectInfo(sqlName, obj);
	}
}
